package org.jeecg.modules.monitoring.j_monitoring.service;

import org.jeecg.modules.monitoring.j_monitoring.entity.MGlComputingResource;
import org.jeecg.modules.monitoring.j_monitoring.entity.MGlResourceStorage;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * @Description: 计算机存储关系表
 * @Author: xiaoyq
 * @Date:   2023-07-03
 * @Version: V1.0
 */
public interface IMGlResourceStorageService extends IService<MGlResourceStorage> {
    /**
     * 批量处理计算机存储数据
     */
    void batchDealData(String category,String resourceId,String storageIds);

    /**
     * 批量删除存储
     * @param category
     * @param resourceId
     */
    boolean batchRemoveStorage(String category,String resourceId);

    /**
     * 批量删除存储
     * @param category
     * @param idList
     */
    boolean batchRemoveStorageByResIds(String category, List<String> idList);

    /**
     * 强制批量删除存储
     * @param storageId
     */
    boolean forceRemoveStorage(String storageId);

    /**
     * 强制批量删除存储
     * @param idList
     */
    boolean forceRemoveStorageByIds(List<String> idList);
}
